#ifndef _SQUAREINDICATOR_H_
#define _SQUAREINDICATOR_H_

namespace osg { class Camera; class Node; }
#include <osg/ref_ptr>
#include <osg/MatrixTransform>

class SquareIndicator
{
public:
	SquareIndicator();

	void setMousePosition(const class QPoint& point, osg::Camera* camera);
	osg::Node* getNode() const { return m_rIndicatorTransform.get(); }
	osg::Vec3 getPosition() const { return m_rIndicatorTransform->getMatrix().getTrans(); }

private:
	osg::MatrixTransform* createIndicator();
	osg::ref_ptr<osg::MatrixTransform> m_rIndicatorTransform;
};

#endif